package com.winning.devops;

import org.apache.catalina.LifecycleListener;

/**
 * @author chensj
 * @title
 * @project tomcat
 * @package com.winning.devops
 * @date: 2019-04-17 9:28
 */
public class MyServer {

    private int port = 8005;

    private String shutdown = "SHUTDOWN";

    private MyDigester myDigester;

    private LifecycleListener lifecycleListener;

    private MyService myService;

    public MyService getMyService() {
        return myService;
    }

    public void setMyService(MyService myService) {
        this.myService = myService;
    }

    public LifecycleListener getLifecycleListener() {
        return lifecycleListener;
    }

    public void setLifecycleListener(LifecycleListener lifecycleListener) {
        this.lifecycleListener = lifecycleListener;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getShutdown() {
        return shutdown;
    }

    public void setShutdown(String shutdown) {
        this.shutdown = shutdown;
    }

    public MyDigester getMyDigester() {
        return myDigester;
    }

    public void setMyDigester(MyDigester myDigester) {
        this.myDigester = myDigester;
    }

    @Override
    public String toString() {
        return "MyServer{" +
                "port=" + port +
                ", shutdown='" + shutdown + '\'' +
                ", myDigester=" + myDigester +
                ", lifecycleListener=" + lifecycleListener +
                ", myService=" + myService +
                '}';
    }
}
